<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <title></title>
  <script src="../treemenu/xtree.js"></script>
  <link type="text/css" rel="stylesheet" href="../treemenu/xtree.css">
</head>

<body bgcolor="#E3F1FD">


</body>
<script language="javascript">

function sub(urlStr)
{
	parent.mainFrm.document.location.href=urlStr;
}

if(document.getElementById) 
{
	<%for(m1 in m1List){%>
	
		var tree = new WebFXTree('${m1?.name}');
		tree.setBehavior('classic');
		
		<%
			def m2List = m2Map[m1.code];
			for(m2 in m2List){
		%>
		    var url2 = '${m2.url}';
		    var menu2;
		    if(url2 != '/')
		    {
				menu2 = new WebFXTreeItem('${m2?.name}', "javascript:sub('${m2.url}')");
			}else
			{
				menu2 = new WebFXTreeItem('${m2?.name}');
			}
					
			tree.add(menu2);
			
			<%
				def m3List = m3Map[m2.code];
				for(m3 in m3List){
			%>
				var url3 = '${m3.url}';
		    	var menu3;
		    	if(url3 != '/')
		    	{
					menu3 = new WebFXTreeItem('${m3?.name}', "javascript:sub('${m3.url}')");
				}else
				{
					menu3 = new WebFXTreeItem('${m3?.name}');
				}
				
				menu2.add(menu3);
				
			<%}%>
			
	    <%}%>
	    
	    document.write(tree);
    <%}%>	

}

</script>
</html>